package com.aliwo.design.patterns.FactoryMethod.pay;

public class FactoryMethodPayTest {
    public static void main(String[] args) {
        // 微信支付测试
        Factory factory = new WechatPayFactory();
        Pay pay = factory.getPay();
        pay.unifiedOrder();
        // 支付宝支付测试
        Factory aliFactory = new AliPayFactory();
        Pay aliPay = aliFactory.getPay();
        aliPay.unifiedOrder();
    }
}
